<?php
class MyLinkPager extends CLinkPager 
{
	public $cssFile = '';
	
	public function init()
	{
		if($this->nextPageLabel===null)
			$this->nextPageLabel=">";
		if($this->prevPageLabel===null)
			$this->prevPageLabel="<";
		if($this->firstPageLabel===null)
			$this->firstPageLabel="<<";
		if($this->lastPageLabel===null)
			$this->lastPageLabel=">>";
		if($this->header===null)
			$this->header="";

		if(!isset($this->htmlOptions['id']))
			$this->htmlOptions['id']=$this->getId();
		if(!isset($this->htmlOptions['class']))
			$this->htmlOptions['class']='yiiPager';
	}
	
	public function run()
	{
		$this->registerClientScript();
		$buttons=$this->createPageButtons();
		if(empty($buttons))
			return;
		echo "<div class='pagination'>";
		echo $this->header;
		echo CHtml::tag('ul',$this->htmlOptions,implode("\n",$buttons));
		echo $this->footer;
		echo "</div>";
	}
}
?>